home *** CD-ROM | disk | FTP | other *** search
/ C!T ROM 3 / ct-rom iiib.zip / ct-rom iiib / WINDOWS / DIVERSEN / WINE02BX / RECT.ELC < prev    next >
Text File  |  1993-03-28  |  5KB  |  59 lines

  1. ;;; compiled by @win386 on Sat Mar 13 01:39:47 1993
  2. ;;; from file c:/src/lucid-19.4/lisp/prim/rect.el
  3. ;;; emacs version 19.3 Lucid.
  4. ;;; bytecomp version 2.08; 27-aug-92.
  5. ;;; optimization is on.
  6. ;;; this file uses opcodes which do not exist in Emacs18.
  7.  
  8. (if (and (boundp 'emacs-version)
  9.      (or (and (boundp 'epoch::version) epoch::version)
  10.          (string-lessp emacs-version "19")))
  11.     (error "This file was compiled for Emacs19."))
  12.  
  13. (fset 'operate-on-rectangle #[(function start end coerce-tabs) "└ëëëèbêi╞yê`)èbêi╚yê╔ )\n W½ë \n\n\n)\n U¼τè bê`    W½▌└ëë  ╬ !ê½ëi V½ä╨ !êi Z `╬\n!êi\nV½ì½å╨\n!ê¬â╤uê\niZ  ╞W½è  \\ ╞   #ê+╚yê¬)\n Z,ç" [nil endlinepos endcol startlinepos startcol start 0 end 1 point-marker tem endextra begextra startpos move-to-column coerce-tabs rectangle-coerce-tab -1 function] 4 "\
  14. Call FUNCTION for each line of rectangle with corners at START, END.
  15. If COERCE-TABS is non-nil, convert multi-column characters
  16. that span the starting or ending columns on any line
  17. to multiple spaces before calling FUNCTION.
  18. FUNCTION is called with three arguments:
  19.  position of start of segment of this line within the rectangle,
  20.  number of columns that belong to rectangle but are before that position,
  21.  number of columns that belong to rectangle but are after point.
  22. Point is at the end of the segment of this line within the rectangle."])
  23. (byte-code "└┴Mê┬├Mê─┼Mê╞╚╔Mç" [delete-rectangle-line #[(startdelpos ignore ignore) "`|ç" [startdelpos] 2] delete-extract-rectangle-line #[(startdelpos begextra endextra) "è└    \n #ê)    `|ç" [extract-rectangle-line startdelpos begextra endextra] 4] extract-rectangle-line #[(startdelpos begextra endextra) "`{`bê├─    ┼#½ñiè╞uêi)Z\n╚`    Z╔ZO╩!\nëG`    Z\\╦OQ)¬U ╚V¼å╚V½ï╩ !\n╩!Q\nBë*ç" [startdelpos end line search-forward "    " t -1 width 0 1 spaces-string nil begextra endextra lines] 6] ["" " " "  " "   " "    " "     " "      " "       " "        "] spaces-strings spaces-string #[(n) "┴X½ä\nHç├┴V½ï┼ P┴Zë¬q \nHP)ç" [n 8 spaces-strings "" val "        "] 4]] 2)
  24. (fset 'delete-rectangle #[(start end) "└┴\n ─$ç" [operate-on-rectangle delete-rectangle-line start end t] 5 "\
  25. Delete (don't save) text in rectangle with point and mark as corners.
  26. The same range of columns is deleted in each line
  27. starting with the line where the region begins
  28. and ending with the line where the region ends." "r"])
  29. (fset 'delete-extract-rectangle #[(start end) "└┬├ ╞$ê    ƒ)ç" [nil lines operate-on-rectangle delete-extract-rectangle-line start end t] 5 "\
  30. Delete contents of rectangle and return it as a list of strings.
  31. Arguments START and END are the corners of the rectangle.
  32. The value is list of strings, one for each line of the rectangle."])
  33. (fset 'extract-rectangle #[(start end) "└┬├ └$ê    ƒ)ç" [nil lines operate-on-rectangle extract-rectangle-line start end] 5 "\
  34. Return contents of rectangle with corners at START and END.
  35. Value is list of strings, one for each line of the rectangle."])
  36. (defvar killed-rectangle nil "\
  37. Rectangle for yank-rectangle to insert.")
  38. (fset 'kill-rectangle #[(start end) "└    \n\"ëç" [delete-extract-rectangle start end killed-rectangle] 3 "\
  39. Delete rectangle with corners at point and mark; save as last killed one.
  40. Calling from program, supply two args START and END, buffer positions.
  41. But in programs you might prefer to use delete-extract-rectangle." "r"])
  42. (fset 'yank-rectangle #[nil "└    !ç" [insert-rectangle killed-rectangle] 2 "\
  43. Yank the last killed rectangle with upper left corner at point." nil])
  44. (fset 'insert-rectangle #[(rectangle) "i┴ë¡«\n¼₧┼yên¼â╞cê╟ !êi V½ä╚ !êi W½â jê╔ @cê Aë¼S╔+ç" [rectangle t first insertcolumn lines 1 10 move-to-column rectangle-coerce-tab nil] 4 "\
  45. Insert text of RECTANGLE with upper left corner at point.
  46. RECTANGLE's first line is inserted at point,
  47. its second line is inserted at a point vertically under point, etc.
  48. RECTANGLE should be a list of strings."])
  49. (fset 'open-rectangle #[(start end) "└┴\n ─$ç" [operate-on-rectangle open-rectangle-line start end nil] 5 "\
  50. Blank out rectangle with corners at point and mark, shifting text right.
  51. The text previously in the region is not overwritten by the blanks,
  52. but insted winds up to the right of the rectangle." "r"])
  53. (fset 'open-rectangle-line #[(startpos begextra endextra) "i    \\\\ bêi┼╞wê\ni Z\\)`┼╞xê`|ê\nj)ç" [begextra endextra column startpos ocol "     " nil] 3])
  54. (fset 'clear-rectangle #[(start end) "└┴\n ─$ç" [operate-on-rectangle clear-rectangle-line start end t] 5 "\
  55. Blank out rectangle with corners at point and mark.
  56. The text previously in the region is overwritten by the blanks.
  57. When called from a program, requires two args which specify the corners." "r"])
  58. (byte-code "└┴Mê┬├Mç" [clear-rectangle-line #[(startpos begextra endextra) "└┴wêi\n\\` bê└┴xê`|ê j)ç" ["     " nil endextra column startpos] 3] rectangle-coerce-tab #[(column) "i└├─!ê\njê┼\nZ!*ç" [nil indent-tabs-mode aftercol delete-char -1 backward-char column] 3]] 2)
  59.